core: Mark `ostree_create_directory_metadata` as `(not nullable)`
authorColin Walters <walters@verbum.org>
Fri, 11 Feb 2022 19:09:49 +0000 (14:09 -0500)
committerColin Walters <walters@verbum.org>
Fri, 11 Feb 2022 19:09:49 +0000 (14:09 -0500)
So I can drop an unnecessary use of `unwrap()` in Rust.

src/libostree/ostree-core.c

index 038606e98d87cd8c363b144a21b230f15a5cc956..0671ed355fa83666fff7b0bf7871aa0cab0dbef4 100644 (file)
@@ -1141,7 +1141,7 @@ _ostree_compare_object_checksum (OstreeObjectType objtype,
  * @dir_info: a #GFileInfo containing directory information
  * @xattrs: (allow-none): Optional extended attributes
  *
- * Returns: (transfer full): A new #GVariant containing %OSTREE_OBJECT_TYPE_DIR_META
+ * Returns: (transfer full) (not nullable): A new #GVariant containing %OSTREE_OBJECT_TYPE_DIR_META
  */
 GVariant *
 ostree_create_directory_metadata (GFileInfo    *dir_info,